package Zuoye1;

public class Zuoye4 {
    public int abs(int a,int b){
        return a+b;
    }
    public int abs(int a,int b,int c){
        return a+b+c;
    }
    public double abs(double a,double b){
        return a+b;
    }
    public String abs(String a,String b){
        return a+b;
    }

    public static void main(String[] args) {
        Zuoye4 gm=new Zuoye4();
        System.out.println(gm.abs(10,20));
        System.out.println(gm.abs(0.6,0.8));
        System.out.println(gm.abs(10,20,50));
        System.out.println(gm.abs("你","好"));
    }
    //利用方法重载，编写四个重载方法，分别求两个整数和、三个整数和、两个小数和、两个字符串类型拼接。
}
